INVISIBLE = 0
VISIBLE = 1

ALIGN_LEFT = 1
ALIGN_CENTER = 2
ALIGN_RIGHT = 3
ALIGN_TOP = 4
ALIGN_BOTTOM = 5

Horizontal = 1
Vertical = 2

AlignLeft = 0x0001  # Aligns with the left edge.
AlignRight = 0x0002  # Aligns with the right edge.
AlignHCenter = 0x0004  # Centers horizontally in the available space.
AlignJustify = 0x0008  # Justifies the text in the available space.

AlignTop = 0x0020  # Aligns with the top.
AlignBottom = 0x0040  # Aligns with the bottom.
AlignVCenter = 0x0080  # Centers vertically in the available space.

BUTTON_TEXT_CENTER = 1
BUTTON_TEXT_BOTTOM = 2

exnull_t = -1

EVENT_CLICK = 1
EVENT_MOVE = 2
EVENT_DRAG = 3
EVENT_DROP = 4

MK_LBUTTON = 0x0001
MK_RBUTTON = 0x0002
MK_SHIFT = 0x0004
MK_CONTROL = 0x0008
MK_MBUTTON = 0x0010

VK_BACK = 0x08
VK_TAB = 0x09
VK_RETURN = 0x0D
VK_SPACE = 0x20
VK_PRIOR = 0x21
VK_NEXT = 0x22
VK_END = 0x23
VK_HOME = 0x24
VK_LEFT = 0x25
VK_UP = 0x26
VK_RIGHT = 0x27
VK_DOWN = 0x28
VK_SELECT = 0x29
VK_PRINT = 0x2A
VK_EXECUTE = 0x2B
VK_SNAPSHOT = 0x2C
VK_INSERT = 0x2D
VK_DELETE = 0x2E
VK_HELP = 0x2F
VK_LSHIFT = 0xA0
VK_RSHIFT = 0xA1
VK_LCONTROL = 0xA2
VK_RCONTROL = 0xA3
VK_LMENU = 0xA4
VK_RMENU = 0xA5

WM_KEYDOWN = 0x0100
WM_KEYUP = 0x0101

WM_MOUSEFIRST = 0x0200
WM_MOUSEMOVE = 0x0200
WM_LBUTTONDOWN = 0x0201
WM_LBUTTONUP = 0x0202
WM_LBUTTONDBLCLK = 0x0203
WM_RBUTTONDOWN = 0x0204
WM_RBUTTONUP = 0x0205
WM_RBUTTONDBLCLK = 0x0206
WM_MBUTTONDOWN = 0x0207
WM_MBUTTONUP = 0x0208
WM_MBUTTONDBLCLK = 0x0209


class D2Client(object):
    WindowWidth = 0
    WindowHeight = 0
    ptMouseX = 0
    ptMouseY = 0


class D2CDrawModes(object):
    TRANS25 = 0
    TRANS50 = 1
    TRANS75 = 2
    MODULATE = 3
    BURN = 4
    NORMAL = 5
    TRANSHIGHLIGHT = 6
    HIGHLIGHT = 7


class D2Color(object):
    WHITE = 0
    RED = 1
    GREEN = 2
    BLUE = 3
    GOLD = 4
    DARK_GRAY = 5
    INVISIBLE = 6
    DARK_YELLOW = 7
    ORANGE = 8
    YELLOW = 9
    DARKEST_GREEN = 0xA
    PURPLE = 0xB
    DARK_GREEN = 0xC
    WHITE_BIS = 0xD
    INVISIBLE2 = 0xE
    LIGHT_GRAY = 0xF
    GRAY = 0x10
    VERY_WIERD = 0x11
    BRIGHT_WHITE = 0x12
    CRYSTAL_RED = 0x13
    WIERD_YELLOW = 0x14
